﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TravelAgencyDAL;
using System.IO;

namespace TravelAgencyConsumer
{
    class Program
    {
        static void Main(string[] args)
        {            
            TravelAgencyDAO dao = new TravelAgencyDAO();
            string[] substrings = new string[] { "hot", "but" };

            foreach (Photo ph in dao.GetPhotosBySubstringsInName(substrings))
            {
                Console.WriteLine("{0}", ph.Name);
            }
        }
    }
}
